<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物车 - MAN商城</title>
    <link rel="stylesheet" href="css/cart.css">
</head>
<body>
    <header class="header">
        <!-- 同首页的头部 -->
    </header>

    <main class="cart-container">
        <h2>我的购物车</h2>
        <div class="cart-items" id="cartItems">
            <!-- 购物车商品将通过JavaScript动态加载 -->
        </div>
        <div class="cart-summary">
            <div class="summary-row">
                <span>商品总数:</span>
                <span id="totalQuantity">0</span>
            </div>
            <div class="summary-row">
                <span>总金额:</span>
                <span id="totalPrice">¥0.00</span>
            </div>
            <button id="checkoutBtn">去结算</button>
        </div>
    </main>

    <footer class="footer">
        <!-- 同首页的页脚 -->
    </footer>

    <script src="js/utils.js"></script>
    <script src="js/cart.js"></script>
</body>
</html>